From: Ben Hutchings Date: Wed, 13 Apr 2016 20:48:06 +0000 (+0100) Subject: fs: Add MODULE_SOFTDEP declarations for hard-coded crypto drivers X-Git-Tag: archive/raspbian/6.19.6-2+rpi1~3^2~32 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/success//%22mailto:kde%40ewsoftware.de/%22/%22http:/www.example.com/cgi/success/%22mailto:kde%40ewsoftware.de/%22?a=commitdiff_plain;h=082f5a40022e13f5db64f8e59958fda4b1d58813;p=linux.git fs: Add MODULE_SOFTDEP declarations for hard-coded crypto drivers Bug-Debian: https://bugs.debian.org/819725 Forwarded: https://lore.kernel.org/all/20160517133631.GF7555@decadent.org.uk/ This helps initramfs builders and other tools to find the full dependencies of a module. Signed-off-by: Ben Hutchings [Lukas Wunner: Forward-ported to 4.11: drop parts applied upstream] Gbp-Pq: Topic bugfix/all Gbp-Pq: Name fs-add-module_softdep-declarations-for-hard-coded-cr.patch --- diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index ec39a4941c7..159c4a7c57f 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -2712,7 +2712,7 @@ module_exit(exit_btrfs_fs) MODULE_DESCRIPTION("B-Tree File System (BTRFS)"); MODULE_LICENSE("GPL"); -MODULE_SOFTDEP("pre: crc32c"); +MODULE_SOFTDEP("pre: crypto-crc32c"); MODULE_SOFTDEP("pre: xxhash64"); MODULE_SOFTDEP("pre: sha256"); MODULE_SOFTDEP("pre: blake2b-256"); diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index c973162d5b3..a50012fceab 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c @@ -3176,6 +3176,7 @@ static void __exit journal_exit(void) MODULE_DESCRIPTION("Generic filesystem journal-writing module"); MODULE_LICENSE("GPL"); +MODULE_SOFTDEP("pre: crypto-crc32c"); module_init(journal_init); module_exit(journal_exit); diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 084fc517e9e..2346422868a 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -2313,5 +2313,8 @@ static void __exit exit_nfsd(void) MODULE_AUTHOR("Olaf Kirch "); MODULE_DESCRIPTION("In-kernel NFS server"); MODULE_LICENSE("GPL"); +#ifdef CONFIG_NFSD_V4 +MODULE_SOFTDEP("pre: crypto-md5"); +#endif module_init(init_nfsd) module_exit(exit_nfsd)